package com.lx.pc.mybatis.repository.quotationtrend;

import java.math.BigInteger;
import java.util.List;

import org.springframework.data.mybatis.repository.annotation.Query;
import org.springframework.data.mybatis.repository.support.MybatisRepository;
import org.springframework.stereotype.Repository;

import com.lx.pc.domain.entity.quotationtrend.QuotationtrendEntity;

@Repository("quotationtrendRepository")
public interface QuotationtrendRepository extends MybatisRepository<QuotationtrendEntity, BigInteger>{

	
	/**
	 * 查询总数
	 */
	@Query("findByQuotationtrendCount")
	public int findByQuotationtrendCount(QuotationtrendEntity quotationtrend);
	
	/**
	 * 查询所有
	 * @param tendering
	 * @return
	 */
	@Query("findByQuotationtrendList")
	public List<QuotationtrendEntity> findByQuotationtrendList(QuotationtrendEntity quotationtrend);
	
	/**
	 * 查询分页
	 * @param supplydemandEntity
	 * @param page
	 * @param size
	 * @return
	 */
	@Query("findByQuotationtrend")
	public List<QuotationtrendEntity> findByQuotationtrend(QuotationtrendEntity quotationtrend,Integer page,Integer size);
	
	/**
	 * 详情查看
	 * @param id
	 * @return
	 */
	@Query("findByQuotationtrendId")
	public QuotationtrendEntity findByQuotationtrendId(BigInteger id);
}
